package com.mao.service.impl.warehouse;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.organization.OrganizationClassDao;
import com.mao.dao.warehouse.WareHouseClassDao;
import com.mao.model.organization.OrganizationClass;
import com.mao.model.warehouse.WareHouseClass;
import com.mao.service.organization.IOrganizationClassService;
import com.mao.service.warehouse.IWareHouseClassService;

@Service("wareHouseClassService")
public class WareHouseClassServiceImpl implements IWareHouseClassService {
	private WareHouseClassDao wareHouseClassDao;

	public List<WareHouseClass> getAllWareHouseClass(Long storeid) {
		return wareHouseClassDao.getAllWareHouseClass(storeid);
	}
	
	public List<WareHouseClass> getAllWareHouseClass() {
		return wareHouseClassDao.getAllWareHouseClass();
	}

	public WareHouseClass saveWareHouseClass(WareHouseClass wc) {
		return wareHouseClassDao.saveWareHouseClass(wc);
	}

	public WareHouseClass updateWareHouseClass(WareHouseClass wc) {
		return wareHouseClassDao.updateWareHouseClass(wc);
	}

	public WareHouseClass getWareHouseClassById(long id) {
		return wareHouseClassDao.getWareHouseClassById(id);
	}
	
	public String valDelWHClass(long id){
		return wareHouseClassDao.valDelWHClass(id);
	}

	public WareHouseClassDao getWareHouseClassDao() {
		return wareHouseClassDao;
	}

	@Autowired
	public void setWareHouseClassDao(WareHouseClassDao wareHouseClassDao) {
		this.wareHouseClassDao = wareHouseClassDao;
	}
	
	
}
